Skip to content

Conversation

@jtenner
Copy link
Contributor

@jtenner jtenner commented Apr 13, 2020

This pull request is more of a question than a suggestion.

EnumValueDeclaration extends VariableLikeDeclaration and the initializer property remains unused. This change simply removes the value property and switches to use the initializer property, reducing memory usage for each EnumValueDeclaration.

Thoughts?

Copy link
Member

@dcodeIO dcodeIO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason this PR makes me particularly happy :)

node.flags = flags;
node.name = name;
node.value = value;
node.initializer = initializer;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@dcodeIO dcodeIO merged commit c2949e2 into AssemblyScript:master Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants